\hypertarget{classpg_path}{\section{pg\-Path Class Reference}
\label{classpg_path}\index{pg\-Path@{pg\-Path}}
}


Path utilities class.  




{\ttfamily \#include $<$pg\-Path.\-h$>$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static std\-::string \hyperlink{classpg_path_a8706d09cf0119ad0364842a5828a8de6}{Get\-Extension} (const char $\ast$sz\-File\-Path)
\begin{DoxyCompactList}\small\item\em Get the file extension of the given path or file. \end{DoxyCompactList}\item 
static std\-::string \hyperlink{classpg_path_a9f465e00b38d6d75d8d6ed480389af8b}{Change\-Extension} (const char $\ast$sz\-Path, const char $\ast$sz\-Extension)
\begin{DoxyCompactList}\small\item\em Changes the extension of the given filepath. \end{DoxyCompactList}\item 
static std\-::string \hyperlink{classpg_path_adf5d5e0462fb2f9e84146c4cdb2e2deb}{Get\-File\-Name} (const char $\ast$sz\-Path)
\begin{DoxyCompactList}\small\item\em Extracts the filename from the given path. \end{DoxyCompactList}\item 
static std\-::string $\ast$ \hyperlink{classpg_path_af7598e8d9aea9febea6a051e787c403c}{Get\-Files\-In\-Directory} (L\-P\-C\-W\-S\-T\-R lpc\-Path, int \&count)
\begin{DoxyCompactList}\small\item\em Reads the specified directory and returns a std\-::string array with all filenames. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Path utilities class. 

\subsection{Member Function Documentation}
\hypertarget{classpg_path_a9f465e00b38d6d75d8d6ed480389af8b}{\index{pg\-Path@{pg\-Path}!Change\-Extension@{Change\-Extension}}
\index{Change\-Extension@{Change\-Extension}!pgPath@{pg\-Path}}
\subsubsection[{Change\-Extension}]{\setlength{\rightskip}{0pt plus 5cm}static std\-::string pg\-Path\-::\-Change\-Extension (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{sz\-Path, }
\item[{const char $\ast$}]{sz\-Extension}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{classpg_path_a9f465e00b38d6d75d8d6ed480389af8b}


Changes the extension of the given filepath. 


\begin{DoxyParams}{Parameters}
{\em sz\-Path} & Path with extension to be changed \\
\hline
{\em sz\-Extension} & New extension the path should get \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
New std\-::string containing the path with new extension 
\end{DoxyReturn}
\hypertarget{classpg_path_a8706d09cf0119ad0364842a5828a8de6}{\index{pg\-Path@{pg\-Path}!Get\-Extension@{Get\-Extension}}
\index{Get\-Extension@{Get\-Extension}!pgPath@{pg\-Path}}
\subsubsection[{Get\-Extension}]{\setlength{\rightskip}{0pt plus 5cm}static std\-::string pg\-Path\-::\-Get\-Extension (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{sz\-File\-Path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{classpg_path_a8706d09cf0119ad0364842a5828a8de6}


Get the file extension of the given path or file. 


\begin{DoxyParams}{Parameters}
{\em sz\-File\-Path} & Gets the extension of this string \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
New string containing the extension without dot 
\end{DoxyReturn}
\hypertarget{classpg_path_adf5d5e0462fb2f9e84146c4cdb2e2deb}{\index{pg\-Path@{pg\-Path}!Get\-File\-Name@{Get\-File\-Name}}
\index{Get\-File\-Name@{Get\-File\-Name}!pgPath@{pg\-Path}}
\subsubsection[{Get\-File\-Name}]{\setlength{\rightskip}{0pt plus 5cm}static std\-::string pg\-Path\-::\-Get\-File\-Name (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{sz\-Path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{classpg_path_adf5d5e0462fb2f9e84146c4cdb2e2deb}


Extracts the filename from the given path. 


\begin{DoxyParams}{Parameters}
{\em sz\-Path} & Path containing the filename. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
New std\-::string containing only the filename 
\end{DoxyReturn}
\hypertarget{classpg_path_af7598e8d9aea9febea6a051e787c403c}{\index{pg\-Path@{pg\-Path}!Get\-Files\-In\-Directory@{Get\-Files\-In\-Directory}}
\index{Get\-Files\-In\-Directory@{Get\-Files\-In\-Directory}!pgPath@{pg\-Path}}
\subsubsection[{Get\-Files\-In\-Directory}]{\setlength{\rightskip}{0pt plus 5cm}static std\-::string$\ast$ pg\-Path\-::\-Get\-Files\-In\-Directory (
\begin{DoxyParamCaption}
\item[{L\-P\-C\-W\-S\-T\-R}]{lpc\-Path, }
\item[{int \&}]{count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{classpg_path_af7598e8d9aea9febea6a051e787c403c}


Reads the specified directory and returns a std\-::string array with all filenames. 


\begin{DoxyParams}{Parameters}
{\em lp\-Path} & The path to the directory to be searched followed by \textbackslash{}$\ast$ (e.\-g. \char`\"{}.\textbackslash{}\textbackslash{}\-Data\textbackslash{}$\ast$\char`\"{}) \\
\hline
{\em count} & Gets filled with the number of files found \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
std\-::string array with all found filenames, no paths! 
\end{DoxyReturn}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Inc/\hyperlink{pg_path_8h}{pg\-Path.\-h}\end{DoxyCompactItemize}
